<?php session_start();

// if session is not set redirect the user
if(empty($_SESSION['user']))
	header("Location:visitor.php");	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Ranking Model Test</title>
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<link rel="stylesheet" type="text/css" href="css/story.css" />
	<link rel="stylesheet" type="text/css" href="css/dialog.css" />
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	<script src="js/story.js" type="text/javascript"></script>
</head>

<body id="story">
	<div id="notify-container">
		<div id="notify--1" style="">
			<input id="finish" class="button" type="button" name="commit" value="Finish"/>
			<span class="notify-text">Please recommend science topics from the list below
			<?php 
			    //echo $_SESSION['user']['u_id'];
			    //echo "(".$_SESSION['user']['u_visibility'].")";
			?>
			</span>
		</div>
	</div>
	<?php
	        require_once('story_info_print.php');
		    print_all_stories();
		    require 'dialog.php';
	?>
</body>
</html>